<template>
  <div @click="increment">{{ count }}</div>
</template>


<script>
export default {
  name: 'Counter',
  //state
  data() {
    return {
      count: 0
    }
  },
  // actions
  methods: {
    increment() {
      this.count++
    }
  }
}

</script>